home *** CD-ROM | disk | FTP | other *** search
/ 3D Games - Real-time Rend…ng & Software Technology / 3D Games - Real-time Rendering & Software Technology.iso / flysdk / plugin / gamelib / cartoon_mesh.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-03-22  |  645 b   |  27 lines

  1. class cartoon_mesh : public bsp_object
  2. {
  3. public:
  4.     cartoon_mesh() 
  5.     { type=TYPE_CARTOON_MESH; };
  6.  
  7.     mesh* objmesh;        // 3d mesh
  8.     light_vertex lights;    // lights illuminating the object
  9.  
  10.     void init();
  11.     void draw();
  12.     int step(int dt) { return 0; };
  13.     int get_custom_param_desc(int i,param_desc *pd);
  14.     bsp_object *clone();
  15.     int message(vector& p,float rad,int msg,int param,void *data);
  16.     mesh *get_mesh() { return objmesh; };
  17. };
  18.  
  19. class cartoon_mesh_desc : public class_desc
  20. {
  21. public:
  22.     void *create() { return new cartoon_mesh; };
  23.     char *get_name() { return "cartoon_mesh"; };
  24.     int get_type() { return TYPE_CARTOON_MESH; };
  25. };
  26.  
  27.